<template name="appDumpUI">
  {{> appDumpUpload}}
  <br>
  {{> appDumpDownload}}
</template>

<template name="appDumpUpload">
  <form enctype="multipart/form-data" class='form-group'>
    <label>Restore Backup</label>
    <input type="hidden" value="{{downloadToken}}" name="token">
    <input type="file" class='app-dump-upload' name='appDumpUpload' accept=".tar">
  </form>
</template>

<template name="appDumpDownload">
  <a class='app-dump-download btn btn-primary' target="_blank" href="/appDump{{#if downloadToken}}?token={{downloadToken}}{{/if}}">Download Backup</a>
</template>